/*
 * Copyright (c) 2020 hebeiyiliuba.com
 * All rights reserved.
 *
 */
package org.jeecg.common.constant;

/**
 * Face++人脸识别
 *
 * @author duanlikao
 * @created 2020/12/29
 */
public class FaceConstant {

    // 调用 API
    public static final  String FACE_URL ="https://api-cn.faceplusplus.com/facepp/v3/";

    public static final String FACE_API_DETECT = "detect";
    public static final String FACE_API_COMPARE = "compare";

    // 你的 key
    public static final String API_KEY = "ltxD_o9nF8sreRQiqwzq0G8ltSXhAbUw";
    // 你的 SECRET
    public static final String API_SECRET = "Xwy5jX5L7R8zrWxk-4DQkVgk87DIQvSQ";

    public final static int CONNECT_TIME_OUT = 30000;
    public final static int READ_OUT_TIME = 50000;
    // 活体检测类型
    public static final String CHECK_TYPE_MOUTH = "mouth";
    public static final String CHECK_TYPE_EYE = "eye";

    // 嘴巴或眼睛状态
    public static final String STATUS_OPEN = "open";
    public static final String STATUS_CLOSE = "close";

    // 活体检测失败次数阈值，超过这个次数就认为检测失败，不再检测
    public static final int CHECK_FAILED_THRESHOLD = 10;

    // 记录检测失败次数的 key，和用户 id 一起组成唯一的 key
    public static final String KEY_FAILED_COUNT = "failedCount";

}